package com.test;

public class MyThread extends Thread{

    public MyThread() {
    }

    public MyThread(String name) {
        super(name);
    }

    @Override
    public void run() {
        for (int i=0;i<3000;i++){
            System.out.println(getName()+"线程正在执行：" + i);
        }
    }

    public MyThread(Runnable target) {
        super(target);
    }
}
